import 'package:get/get.dart';
import 'package:sports_new/entity/expert/plan_form/plan_form_detail_entity.dart';
import 'package:sports_new/server/api/expert_api.dart';

class PlanFormDetailLogic extends GetxController{
  int? issueId = Get.arguments;
  PlanFormDetail? data;
  IssueInfo? issueInfo;

  @override
  void onReady() {
    getData();
    super.onReady();
  }

  Future getData() async {
    data = await ExpertApi.getPlanFormDetail(issueId);
    issueInfo = data?.issueInfo;
    update();
  }
}